package com.hlkj.pay.vo.order.req;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import javax.validation.constraints.NotEmpty;

import com.hlkj.framework.common.valid.EnumValid;
import com.hlkj.framework.common.valid.ValidAmount;
import com.hlkj.pay.enums.CommonEnum;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
 * @author HlpayTeam
 * @date 2024/10/12 9:05
 */
@Data
public class OrderAccount {
	@Schema(description = "分账金额 单位元")
	@NotEmpty(message = "分账金额 不能为空")
	private String amount;
	
	@Schema(description = "分账账号")
	@NotEmpty(message = "分账账号 不能为空")
	private String accountNo;
	
	@Schema(description = "分账说明")
	@NotEmpty(message = "分账说明 不能为空")
	private String description;

	@Schema(description = "分账接收方全称")
	private String name;

	@Schema(description = "分账D0标识 0 非D0交易 1 是")
	@EnumValid(value = CommonEnum.YES_NO_TYPE.class,message = "分账D0标识 无效")
	private Integer periodType;
	@Schema(description = "手续费承担比例 50% 传50")
	@ValidAmount(message = "手续费承担比例不正确",allowZero = true)
	private String sepaFeeRatio;



}
